<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <ul class="nav nav-tabs" data-field="status">
            <li class="active"><a href="#t-all" data-value="" data-toggle="tab"><i class="icon-shezhi1 iconfont"></i> 分销设置</a></li>
        </ul>
    </div>
    <div class="panel-body">
        <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
            <input type="hidden" name="platform" value="agent" />
            <div class="panel-body">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">分销启用:</label>
                    <div class="col-xs-12 col-sm-8">
                        <div class="radio">
                            <label for="row[on]-1"><input {if condition="$pageData.on=='on'"}checked{/if} id="row[on]-1" name="row[on]" type="radio" value="on" > 开启</label> 
                            <label for="row[on]-2"><input {if condition="$pageData.on=='off'"}checked{/if} id="row[on]-2" name="row[on]" type="radio" value="off" > 关闭</label> 
                        </div>
                        <div style="font-size:13px;color:#888;">分销功能开启|关闭</div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">分销模式:</label>
                    <div class="col-xs-12 col-sm-8">
                        <div class="radio">
                            <label for="row[fxms]-1"><input {if condition="$pageData.fxms=='1'"}checked{/if} id="row[fxms]-1" name="row[fxms]" type="radio" value="1"> 人人分销</label> 
                            <label for="row[fxms]-2"><input {if condition="$pageData.fxms=='2'"}checked{/if} id="row[fxms]-2" name="row[fxms]" type="radio" value="2"> 指定分销</label> 
                        </div>
                        <div style="font-size:13px;color:#888;">“人人分销”默认每个人都可以分销;“指定分销”仅可后台手动设置推广员;</div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">分销层级:</label>
                    <div class="col-xs-12 col-sm-8">
                        <div class="radio">
                            <label for="row[lev]-1"><input {if condition="$pageData.lev=='1'"}checked{/if} id="row[lev]-1" name="row[lev]" type="radio" value="1" > 一级分销</label> 
                            <label for="row[lev]-2"><input {if condition="$pageData.lev=='2'"}checked{/if} id="row[lev]-2" name="row[lev]" type="radio" value="2" > 二级分销</label> 
                        </div>
                        <div style="font-size:13px;color:#888;">分销层级，一级是只返上级一层的佣金，二级是返上级和上上级的佣金</div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">自购返佣:</label>
                    <div class="col-xs-12 col-sm-8">
                        <div class="radio">
                            <label for="row[zgfy]-1"><input  {if condition="$pageData.zgfy=='on'"}checked{/if} id="row[zgfy]-1" name="row[zgfy]" type="radio" value="on" > 开启</label> 
                            <label for="row[zgfy]-2"><input  {if condition="$pageData.zgfy=='off'"}checked{/if} id="row[zgfy]-2" name="row[zgfy]" type="radio" value="off" > 关闭</label> 
                        </div>
                        <div style="font-size:13px;color:#888;">开启：分销员自己购买商品，享受一级返佣，上级享受二级返佣； 关闭：分销员自己购买商品没有返佣</div>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">分销海报图:</label>
                    <div class="col-xs-12 col-sm-8">
                        <div class="input-group">
                            <input id="c-hb" class="form-control" size="50"
                                value="{$pageData.hb|default=''}" name="row[hb]" type="hidden">
                            <div class="input-group-addon no-border no-padding">
                                <span><button type="button" data-params='{"category":"design"}' id="faupload-hb"
                                        class="btn btn-danger faupload" data-input-id="c-hb"
                                        data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp"
                                        data-multiple="true" data-preview-id="p-hb"><i
                                            class="fa fa-upload"></i> {:__('Upload')}</button></span>
                            </div>
                            <span class="msg-box n-right" for="c-hb"></span>
                        </div>
                        <ul class="row list-inline faupload-preview" id="p-hb"></ul>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">最低提现金额(元):</label>
                    <div class="col-xs-3 col-sm-3">
                        <input id="c-tx" data-rule="required" step="1" class="form-control" name="row[tx]"
                            type="number" value="{$pageData.tx|default='50'}">
                    </div>
                </div>
               
                
           
            </div>

            <div class="form-group layer-footer">
                <label class="control-label col-xs-12 col-sm-2"></label>
                <div class="col-xs-12 col-sm-8">
                    <button type="submit" style="width: 150px;" class="btn btn-primary"><i class="icon-shenhe iconfont"></i> 保存</button>
                </div>
            </div>
        </form>
    </div>
</div>